using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace ClientTools.Client.Controls.Packager.PackageClasses
{
    public class Package
    {
        private string _name;
        private string _version;
        private License _license = new License();
        private string _url;
        private Version _requirements = new Version();
        private bool _isNewPackage = false;

        [XmlElement("name")]
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        [XmlElement("version")]
        public string Version
        {
            get { return _version; }
            set { _version = value; }
        }

        [XmlElement("license")]
        public License License
        {
            get { return _license; }
            set { _license = value; }
        }

        [XmlElement("url")]
        public string Url
        {
            get { return _url; }
            set { _url = value; }
        }

        [XmlElement("requirements")]
        public Version Requirements
        {
            get { return _requirements; }
            set { _requirements = value; }
        }

        [XmlIgnore]
        public bool IsNewPackage
        {
            get { return _isNewPackage; }
            set { _isNewPackage = value; }
        }
	
	
    }
}
